﻿namespace com.stifel.BranchMgmt
{
    using System.Collections.Generic;

    using com.stifel.BranchMgmtDao;

    public partial class BranchMgmtSelectUserControl
    {
        #region Methods

        List<StifelBranchInfo> getBranchsByThompsonId( int thompsonId )
        {
            List<StifelBranchInfo> l = new List<StifelBranchInfo>( );
            StifelThompsonIdDao thompsonDao = new StifelThompsonIdDao( );
            StifelThompsonId sti = thompsonDao.GetById( thompsonId );
            StifelBranchInfo sbi = new StifelBranchInfo( );
            if ( sti.BranchLookupId.HasValue )
            {
                StifelBranchInfoDao branchInfoDao = new StifelBranchInfoDao( );
                sbi = branchInfoDao.Get( sti.BranchLookupId.Value );
            }
            l.Add( sbi );
            return l;
        }

        #endregion Methods
    }
}